﻿using System;
using Manager;
using UnityEngine;
using UnityEngine.Events;
using UnityEngine.UI;

// Token: 0x020004DF RID: 1247
public class ImageHelpScene : MonoBehaviour
{
	// Token: 0x06001DB5 RID: 7605 RVA: 0x001156FC File Offset: 0x001138FC
	public virtual void SelectCustom()
	{
		
	}

	// Token: 0x06001DB6 RID: 7606 RVA: 0x00115738 File Offset: 0x00113938
	public virtual void SelectH()
	{
		
	}

	// Token: 0x06001DB7 RID: 7607 RVA: 0x00115768 File Offset: 0x00113968
	public virtual void SelectMyRoom()
	{
		
	}

	// Token: 0x06001DB8 RID: 7608 RVA: 0x001157A4 File Offset: 0x001139A4
	public virtual void SelectMapSelect()
	{
		
	}

	// Token: 0x06001DB9 RID: 7609 RVA: 0x001157E0 File Offset: 0x001139E0
	public virtual void Start()
	{
		this.imageHelp.sprite = this.sprite[(int)global::ImageHelpScene.kind];
		if (global::ImageHelpScene.isAdd)
		{
			this.action = delegate()
			{
				
			};
		}
		else
		{
			switch (global::ImageHelpScene.kind)
			{
			case global::ImageHelpScene.HelpKind.Custom:
				this.action = new UnityAction(this.SelectCustom);
				break;
			case global::ImageHelpScene.HelpKind.H:
				this.action = new UnityAction(this.SelectH);
				break;
			case global::ImageHelpScene.HelpKind.MyRoom:
				this.action = new UnityAction(this.SelectMyRoom);
				break;
			case global::ImageHelpScene.HelpKind.MapSelect:
				this.action = new UnityAction(this.SelectMapSelect);
				break;
			}
		}
		global::ImageHelpScene.isAdd = true;
		this.isEnd = false;
	}

	// Token: 0x06001DBA RID: 7610 RVA: 0x001158C4 File Offset: 0x00113AC4
	public virtual void Update()
	{
		if (this.isEnd)
		{
			return;
		}
	
		if (Input.anyKeyDown)
		{
			this.action();
			if (this.graphicRaycaster)
			{
				this.graphicRaycaster.enabled = false;
			}
			this.isEnd = true;
		}
	}

	// Token: 0x04002586 RID: 9606
	[SerializeField]
	protected GraphicRaycaster graphicRaycaster;

	// Token: 0x04002587 RID: 9607
	[SerializeField]
	protected Image imageHelp;

	// Token: 0x04002588 RID: 9608
	[SerializeField]
	protected Sprite[] sprite;

	// Token: 0x04002589 RID: 9609
	protected UnityAction action;

	// Token: 0x0400258A RID: 9610
	protected bool isEnd;

	// Token: 0x0400258B RID: 9611
	public static global::ImageHelpScene.HelpKind kind;

	// Token: 0x0400258C RID: 9612
	public static bool isAdd = true;

	// Token: 0x020004E0 RID: 1248
	public enum HelpKind
	{
		// Token: 0x0400258F RID: 9615
		Custom,
		// Token: 0x04002590 RID: 9616
		H,
		// Token: 0x04002591 RID: 9617
		MyRoom,
		// Token: 0x04002592 RID: 9618
		RoomSelect,
		// Token: 0x04002593 RID: 9619
		MapSelect,
		// Token: 0x04002594 RID: 9620
		Concierge
	}
}
